package com.lishuang.org.domain;

import com.lishuang.basic.domain.BaseDomain;
import com.lishuang.user.domain.Logininfo;
import lombok.Data;

@Data
public class Employee extends BaseDomain {

    //员工名称
    private String username;
    //员工电话
    private String phone;
    //员工邮箱
    private String email;
    //员工盐值
    private String salt;
    //员工的密码
    private String password;
    //员工的年龄
    private Integer age;
    //员工的状态
    private Integer state = 1;
    //员工所属部门ID
    private Long department_id;
    //登录信息ID
    private Long logininfo_id;
    //店铺ID：为空=平台系统管理员，不为空=店铺管理员
    private Long shop_id;
    //回显查询部门对象(查询部门)
    private Department department;
    //回显登录信息对象(查询登录信息)
    private Logininfo logininfo = new Logininfo();
    //回显查询店铺对象(查询店铺)
    private Shop shop;

    //方便从中间表中为当前员工添加角色
    private Long role_id;


}
